package timing.ukulele.portal.convertor;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
import timing.ukulele.common.data.BaseDataConverter;
import timing.ukulele.data.portal.view.SysTenantUserVO;
import timing.ukulele.portal.persistent.SysTenantUser;

@Mapper
public interface TenantUserConvertor extends BaseDataConverter<SysTenantUser, SysTenantUserVO> {
    TenantUserConvertor INSTANCE = Mappers.getMapper(TenantUserConvertor.class);

    @Mappings({
            @Mapping(target = "tenantName", ignore = true)
    })
    @Override
    SysTenantUserVO p2v(SysTenantUser tenantUser);
}
